<?php $this->load->view("common/header") ?>
<body>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="left"><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top">
      <div id="crum">
<?php echo $crum ?>
</div>
      <br>
      <div id="msg" align="center"><span class="pageMsg"><?php echo $msg ?></span></div>
        <form name="form1" method="post" action="<?php echo base_url() ."worklog/updateworklog/" ?>">
          <fieldset style="width:350px">
            <legend>Update Work Log details</legend>
            <table width="400" border="0" align="center" cellpadding="5" cellspacing="0">
              
              <tr>
                <td width="47" class="tblBodyNoneHover">Tech</td>
                <td width="181"><select name="techId" id="techId">
                  <?php foreach ($techs as $tech) { ?>
                  <option value="<?php echo ($tech['id']) ?>"
                <?php if($tech['id'] == $wl['user_id']) { echo " selected"; } ?>
                ><?php echo ($tech['firstname'] . " " . $tech['lastname'] . " (". $tech['username']. ")") ?></option>
                  <?php } ?>
                </select></td>
              </tr>
              <tr>
                <td rowspan="2" valign="top" class="tblBodyNoneHover">Job</td>
                <td><select name="worklog_company" id="worklog_company">
                  <option value="0">Select a client</option>
                  <?php foreach ($clients as $client) { ?>
                  <option value="<?php echo ($client['id']) ?>"
                <?php if($client['id'] == $wl['company_id']) { echo " selected"; } ?>
                ><?php echo ($client['company_name']) ?></option>
                  <?php } ?>
                </select></td>
              </tr>
              <tr>
                <td>
                  
                  <?php show_loader() ?>
                  <select name="jobId" id="worklog_job" style="display:xnone">
                    <?php echo $job_options ?>
                  </select>
                  <div id="nojobs" style="display:none">No Jobs Found</div>
                </td>
              </tr>
              <tr>
                <td><input name="action" type="hidden" id="action" value="update">
                <input type="hidden" name="wlId" id="wlId" value="<?php echo $wl['id'] ?>"></td>
                <td><input name="button" type="submit" class="tblBtn" id="button" value=" Update Work Log ">
                  
                </td>
              </tr>
            </table>
          </fieldset>
      </form></td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
